package com.kaili.basic.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Desc: 车辆新增
 * @author: renzhikun
 * @Time: 18-12-13 上午10:53
 * @Copyright: ©  杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Data
@ApiModel(description = "车辆新增Dto")
public class BaseCarAddDTO {

    @ApiModelProperty("业务id")
    private Integer Id;

    @ApiModelProperty("所属网点id")
    private Long belongSiteId;

    @NotEmpty(message = "车牌号不能为空")
    @ApiModelProperty("车牌号")
    private String carNo;

    @NotEmpty(message = "车主不能为空")
    @ApiModelProperty("车主姓名")
    private String carOwnerName;

    @ApiModelProperty("品牌型号")
    private int brandModel;

    @ApiModelProperty("车型")
    private int carType;

    @ApiModelProperty("额定载重")
    private BigDecimal tonne;

    @ApiModelProperty("额定容积")
    private Double ratedVolume;

    @NotEmpty(message = "电话不能为空")
    @ApiModelProperty("电话")
    private String phoneNumber;

    @ApiModelProperty("上牌时间")
    private Date registeredTime;

    @ApiModelProperty("年检有效期至")
    private Date annualCheckExpiryTime;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("车主是否是驾驶员")
    private int isDriver;

}
